﻿using Domain.Entity;
using Domain.Entity.sys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.IRepository
{
    public interface IDictDataRepository
    {
        //根据字典类型分页查询数据
        Task<FenYe<DictData>> GetDictDataByType(FenYe<DictData> fenYe,string? label,int? status, string? createname, string? starttime, string? endtime,int typeid);

        //添加字典数据
        Task<int> AddDictData(DictData dictData);

        //根据id查询字典数据
        Task<DictData> GetDictDataById(int id);

        //修改字典数据
        Task<int> UpdateDictData(DictData dictData);

        //删除字典数据
        Task<int> DeleteDictData(int id);

        //根据字典类型查询数据
        Task<List<DictData>> GetAllDictDataBytype(int typeid);

        // 批量查询所有指定调拨ID的数据
        Task<List<DictData>> GetIds(int[] ids);
    }
}
